package com.csw.empGrey2.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.csw.empGrey2.entity.Emp;

/**
 * @author 1
 */
@Mapper
public interface EmpDao {

	Emp findByCardId(@Param("cardId") Integer cardId);

	void deleteAccount(@Param("cardId") Integer cardId);

	void updateBy(@Param("emp") Emp emp);

	Integer addEmp(@Param("emp") Emp emp);

	Integer queryCount();

	List<Emp> queryAllAndByPage(@Param("firstIndex") Integer firstIndex, @Param("lastIndex") Integer lastIndex);
}
